package com.gui.design.singleton;

import java.lang.reflect.Constructor;

public class RuntimeDemo {

    public static void main(String[] args) throws Exception{
        Runtime runtime = Runtime.getRuntime();
        Runtime runtime1 = Runtime.getRuntime();
        System.out.println(runtime1);
        System.out.println(runtime);
        System.out.println("======================");
        Class<Runtime> clazz = Runtime.class;
        Constructor<Runtime> constructor = clazz.getDeclaredConstructor();
        constructor.setAccessible(true);
        Runtime runtime2 = constructor.newInstance();
        Runtime runtime3 = constructor.newInstance();
        System.out.println(runtime2);
        System.out.println(runtime3);
    }
}
